﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="CSLive.ControlPanel.ControlPanel" MasterPageFile="~/ControlPanel/Masters/SetupAdmin.master" %>

<asp:Content ID="DescriptionRegion" ContentPlaceHolderId="DescriptionRegion" runat="server">
    CSlive Configuration
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderId="TaskRegion" runat="Server">
    <style type="text/css">
        .CommonTitleBarTitleAreaContainerLeft { background-image: url(../images/cslive/cslivelogo.png); }
    </style>
    <cp:controlpanelselectednavigation selectednavitem="CSLive" runat="server" />
    <div class="CommonDescription">
    Use this page to setup <a href="http://communityserverlive.com" target="_blank">CSLive</a> on your site, such as adding CSLive Controls to Pages and Configuring their settings.
    </div>
    <cp:statusmessage id="Status" runat="server" />
    <p>
    <asp:PlaceHolder runat="server" ID="pre1">
        First thing you will need to do is install CSLive into the web.config file:
    </p> 
    </asp:PlaceHolder>
    <asp:PlaceHolder runat="server" ID="pre2">
    <p><b>Automatic Installation: </b><CP:ResourceButton runat="server" Text="Install" ID="InstallButton" /> (Requires App Pool Service Username (Usually Network Service) to have Full Permissions on web root)
    </p>
    </asp:PlaceHolder>
    <asp:PlaceHolder runat="server" ID="pre3">
    <p><b>Manually Installation: </b>(Add the following code to the web.config file, click the 'Done' button when Web.Config has been saved) <CP:ResourceButton runat="server" Text="Done" ID="RefreshButton" /></p>
    <blockquote style="overflow-x: scroll; border: solid 1px #ccc;">
    <pre style="margin: 0px;">&lt;configuration&gt;
&nbsp;&nbsp;&nbsp;&lt;system.web&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;pages&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;controls&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;add tagPrefix="CSLive" namespace="CSLive.Controls" assembly="CSLive" /&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/controls&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/pages&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;httpHandlers&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;add verb="GET" path="CSLiveResource.axd" validate="false" type="CSLive.Resources.ResourceHandler, CSLive" /&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/httpHandlers&gt;
&nbsp;&nbsp;&nbsp;&lt;/system.web&gt;
&nbsp;&nbsp;&nbsp;&lt;system.webServer&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;httpHandlers&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;add verb="GET" path="CSLiveResource.axd" validate="false" type="CSLive.Resources.ResourceHandler, CSLive" /&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/httpHandlers&gt;
&nbsp;&nbsp;&nbsp;&lt;/system.webServer&gt;
&lt;configuration&gt;</pre>
    </blockquote>
    </asp:PlaceHolder>
	<asp:PlaceHolder runat="server" ID="post1" Visible="false">
	<h4 class="CommonSubTitle">CSLive Editor</h4>
	<p>The CS Live Editor allows placement of CSLive Controls on pages without the need to use FTP or a remote desktop technology. Click the 'Launch the Editor' button to begin</p>
	<script type="text/javascript">
	    function launchEditor()
	    {
	        window.open("./CSLive/Editor.aspx", "editorwindow", "status=0,toolbar=0,width=1000,height=720,location=0,menubar=0,resizable=0,scrollbars=1,resize=0");
	        return false;
	    }
	</script>
	<p><CP:ResourceLinkButton runat="server" CssClass="CommonTextButton" Text="Launch The Editor" ID="EditorButton" OnClientClick="return launchEditor();" /></p>
	<h4 class="CommonSubTitle">Control Configuration</h4>
	<div class="CommonFormArea">	
	<TWC:TabbedPanes runat="server" ID="optionPanes"
	    PanesCssClass="CommonPane"
	    TabSetCssClass="CommonPaneTabSet"
	    TabCssClasses="CommonPaneTab"
	    TabSelectedCssClasses="CommonPaneTabSelected"
	    TabHoverCssClasses="CommonPaneTabHover">
    </TWC:TabbedPanes>
        
    <p class="PanelSaveButton">
        <cp:resourcebutton id="SaveButton" runat="server" resourcename="Save" />
    </p>
    </div>
    </asp:PlaceHolder>
</asp:Content>